﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Configuration
{
    /// <summary>
    /// 主配置元素
    /// </summary>
    public class MasterConfigElement : ConfigurationElement
    {
        /// <summary>
        /// Api帮助地址
        /// </summary>
        [ConfigurationProperty("apiHelpAddress")]
        public string ApiHelpAddress
        {
            get
            {
                return (string)base["apiHelpAddress"];
            }
            set
            {
                base["apiHelpAddress"] = value;
            }
        }

        /// <summary>
        /// 过滤器集合
        /// </summary>
        [ConfigurationProperty("filters")]
        public FilterElementCollection Filters
        {
            get
            {
                return (FilterElementCollection)base["filters"];
            }
        }
    }
}
